#include "helper.hpp"

namespace VN{
    static int _shift_offset[16]={0,-10,-8,-6,-4,4,6,8,10,12,10,8,6,-14,-12,-10};
    LayerImage& ShiftVertical(LayerImage* g,int t){
        g->OffsetPosition(0,_shift_offset[t]);
        return *g;
    }
    LayerImage& ShiftHorizontal(LayerImage* g,int t){
        g->OffsetPosition(_shift_offset[t],0);
        return *g;
    }
    LayerImage& BottomJump(LayerImage* g,int t){
        static int _bottomjump_table[31]={0,
            -90,-90,-80,-80,-70,-70,-60,-60,-50,-50,-40,-40,-35,-35,
            30,20,20,10,10,5,5,5,5,5,5,5,5,5,5,5
        };
        g->OffsetPosition(0,_bottomjump_table[t]);
        return *g;
    }
}